package com.yonyou.pmclouds.workstopreport.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.copyperson.entity.CopyPersonVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Table(name="pm_workstop")
@Data
public class WorkStopVO extends SuperVO {

    public static final String BILLSTATUS = "billstatus";
    public static final String PKPROJECT = "pkProject";
    public static final String STOPDATE="stopdate";
    public static final String PRERESUMEDATE="preresumeDate";

    public static final String CREATOR = "creator";
    public static final String CREATOR_NAME = "creatorName";
    public static final String PROJECT_NAME = "projectName";
    public static final String PROJECT_CODE = "projectCode";
    public static final String WORKSTOPDAYS = "workstopdays";

    /**
     * 区分移动端操作构造不同的通知内容
     */
    public static final String OPERATION_ADD = "add";
    public static final String OPERATION_UPDATE = "update";
    public static final String OPERATION_PASS = "pass";
    public static final String OPERATION_RECTIFY = "rectify";

    @Id
    private String pkWorkstopreport; //停工单主键

//    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date stopDate;     //停工日期

//    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date preresumeDate; //预计复工日期

    private String workstopreason;//停工原因

    private Integer workstopdays;//停工天数

    private BigDecimal longitude; //经度
    private BigDecimal latitude;  //纬度
    private String position;   //位置信息

    private Byte billstatus;//报告单据状态
    private String billType;//单据类型


    private String creator;//创建者
//    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date creationtime;//创建时间

    private String modifier;//修改者
//    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date modifytime;//修改时间

    private String pkTenant;//关联租户主键

    private String pkProject;//关联项目

    @Transient
    private String projectName;//项目名称
    @Transient
    private String projectCode;//项目编码
    @Transient
    private String[] pictures;//图片信息
    @Transient
    private String pictureAddress; // 照片真实地址(用于存储HTML形式)
    @Transient
    private int picNum;//图片数量
    @Transient
    private String status;//单据展示状态
    @Transient
    private String orgName;//组织名 打印模板时用的
    @Transient
    private String creatorName;//制单人姓名
    @Transient
    private String strBillstatus; // 单据状态
    @Transient
    private List<CopyPersonVO> copyPersonVOList; //抄送人
    @Transient
    private String operation;//操作类型

}
